#include "VFWWnd.h"

class CMainFrame : public CFrameWnd
{
public:
	CMainFrame();

	//{{AFX_VIRTUAL(CMainFrame)
	//}}AFX_VIRTUAL

protected:
	DECLARE_DYNCREATE(CMainFrame)
	virtual ~CMainFrame();

  CAVICapWnd    m_wndCap;
  int           m_nDevice;
  CString       m_sDevice;
  int           m_nWidth;
  int           m_nHeight;
  CString       m_sUNCFile;
  CString       m_sServer;
  CString       m_sRemoteFile;
  INTERNET_PORT m_nPort;
  CString       m_sUser;
  CString       m_sPassword;
  DWORD         m_nTimeInterval;
  UINT          m_nStartupTimerID;
  UINT          m_nPeriodicTimerID;
  int           m_nJpegQuality;
  int           m_nPeriodicInterval;
  int           m_nMaxCaptures;
  int           m_nCurrentCapture;
  BOOL          m_bIncrementFilename;

  static int GetEncoderClsid(const WCHAR* format, CLSID* pClsid);

	//{{AFX_MSG(CMainFrame)
	afx_msg void OnFileCapture();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

